export const LOCAL_PASSWORD = 'local_password'
export const LOCAL_PHONE = 'local_phone'

export const LEAVE_LIST = [{
    value: 1,
    text: "年假"
  },
  {
    value: 2,
    text: "串休假"
  },
  {
    value: 3,
    text: "病假"
  },
  {
    value: 4,
    text: "事假"
  },
  {
    value: 5,
    text: "婚嫁"
  },
  {
    value: 6,
    text: "产假"
  },
  {
    value: 7,
    text: "陪护假"
  },
  {
    value: 8,
    text: "夏休假"
  },
]
export const LEAVE_ENUM = LEAVE_LIST.reduce((pre, next) => {
  return {
    ...pre,
    [next.value]: next.text
  }
}, {})

export const STATUS_ENUM = {
  0: '已撤销',
  1: '待组长审批',
  2: '组长驳回',
  3: '待管理员审批',
  4: '管理员驳回',
  5: '已通过'
}

export const overtimeTypeMap = {
  1: '串休加班',
  2: '加班费加班'
}

export const SIGN_ON_STATUS_ENUM = {
  0: '正常',
  1: '异常',
}